net: hns3: fix a bug caused by udelay
authorPeng Li <lipeng321@huawei.com>
Thu, 20 Dec 2018 03:52:00 +0000 (11:52 +0800)
committerSalvatore Bonaccorso <carnil@debian.org>
Thu, 18 Jul 2019 22:23:17 +0000 (23:23 +0100)
commit1196a888c9b1c17ff636cae4c79122d614906791
tree9661379d6c926f8b163ec110a71d1914a7c1623d
parent7ea96c6c5a960923c0c1df4f1862074bbdecf208
net: hns3: fix a bug caused by udelay

udelay() in driver may always occupancy processor. If there is only
one cpu in system, the VF driver may initialize fail when insmod
PF and VF driver in the same system. This patch use msleep() to free
cpu when VF wait PF message.

Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Gbp-Pq: Topic bugfix/arm64/huawei-taishan
Gbp-Pq: Name 0024-net-hns3-fix-a-bug-caused-by-udelay.patch
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_mbx.c